
package fcl.platform;

public enum Mode {
	IDLE(0),
	WALK(1),
	RUN(2),
	BUS(3),
	TRAIN(4),
	LRT(5),
	TAXI(6),
	CAR(7),
	LIFT(8),
	;
	private Mode(int mode)
	{
		this.mode = mode;
	}
	public static Mode toMode(int mode)
	{
		switch(mode)
		{
		case 0:
			return IDLE;
		case 1:
			return WALK;
		case 2:
			return RUN;
		case 3:
			return BUS;
		case 4:
			return TRAIN;
		case 5:
			return LRT;
		case 6:
			return TAXI;
		case 7:
			return CAR;
		case 8:
			return LIFT;
		default:
			return null;
		}
	}
	public final int mode;
}
